<?php

namespace IDock\Insurance\DBIC\Response;

use IDock\Http\Response;
use IDock\Printer\VehicleActualValuePrinter;

class VehicleActualValueResponse extends AllDBICResponse
{
    /**
     * @var VehicleActualValuePrinter $printer
     */
    public $printer = VehicleActualValuePrinter::class;

    public function printerInit(): Response
    {
        $this->printer->actualValue = $this->getRecords('0')['carValueList'][0]['carActualValue'] ?? '';

        return $this;
    }
}